@import '../../../component/style/themes/default.scss';
@import '../styles/mixins.scss';

.cui-callkit-invitation-content {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  padding-right: 4px;
  margin-top: -2px;
  .cui-callkit-invitation-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;

    .cui-callkit-invitation-avatar-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .cui-callkit-invitation-avatar-placeholder {
      width: 100%;
      height: 100%;
      background: #f0f0f0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      font-weight: 500;
      color: #666;
    }

    .cui-callkit-invitation-call-type {
      position: absolute;
      bottom: -2px;
      right: -2px;
      width: 24px;
      height: 24px;
      background: #1890ff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 12px;
      border: 2px solid white;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
  }

  .cui-callkit-invitation-info {
    flex: 1;
    min-width: 0;
    height: 42px;
    .cui-callkit-invitation-caller {
      height: 22px;
      @include Title(medium, $gray-98);
      // font-size: 16px;
      // font-style: normal;
      // font-weight: 510;
      line-height: 22px; /* 137.5% */
      letter-spacing: 0.032px;
      // 🔧 新增：文本溢出处理
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .cui-callkit-invitation-description {
      height: 20px;
      // font-size: 14px;
      // color: rgba(0, 0, 0, 0.65);
      // margin-bottom: 4px;
      @include Title(small, #919BA1);
    }

    .cui-callkit-invitation-timer {
      font-size: 12px;
      color: #ff4d4f;
      font-weight: 500;
    }
  }

  .cui-callkit-invitation-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;

    .cui-callkit-invitation-reject-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: $red-7;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      &:hover {
        background: $red-8;
      }
    }

    .cui-callkit-invitation-accept-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: $green-4;
      border: none;
      &:hover {
        background: $green-5;
      }
    }
  }
}

// 深色模式支持
@media (prefers-color-scheme: dark) {
  .cui-callkit-invitation-content {
    .cui-callkit-invitation-avatar-placeholder {
      background: #3a3a3a;
      color: #ccc;
    }

    .cui-callkit-invitation-info {
      .cui-callkit-invitation-caller {
        color: rgba(255, 255, 255, 0.85);
      }

      .cui-callkit-invitation-description {
        color: rgba(255, 255, 255, 0.65);
      }
    }
  }
} 